package com.nectia.certificacion.scjp;

/**
 * @author eogaz
 * conparación de objeto Strig y BufferString BufferString es persistente
 */
public class Exercise21 {
	
	public static void stringReplace(String text) {
		text = text.replace('j', 'c');
	}
	public static void BufferReplace(StringBuffer text) {
		text = text.append("c");
	}
	public static void main(String[] args){
		String textString = new String("java");
		StringBuffer textBuffer = new StringBuffer("java");
		
		stringReplace(textString);
		BufferReplace(textBuffer);
		System.out.println(textString + textBuffer);
	}
}
